package lab02;

public class Golem extends Boss implements  EnrichBlood {
    public Golem() {
    }
    public Golem(String name,int hitPoints) {
        super();
    }

    public void move() {
        System.out.println("Golem曲线移动");
    }
    public void enrichBlood() {
        if (getHitPoints() < 10 && getHitPoints() > 0) {
            int hitPoints = getHitPoints();
            setHitPoints( hitPoints += 20);
            System.out.println("Golem 开始补血,当前血量为:" + getHitPoints());
        }
    }
}